﻿@model VehicleOOBWeb.Models.LoginModel

@{
    ViewBag.Title = "Đăng nhập";
}

<hgroup class="title">
    <h1>Đăng nhập</h1>
</hgroup>

<section id="loginForm">
    @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <table class="login">
            <tr>
                <td class="label">@Html.Label("Tài khoản:")</td>
                <td>@Html.TextBoxFor(m => m.UserName)</td>
            </tr>
            <tr>
                <td colspan="2">
                    @Html.ValidationMessageFor(m => m.UserName)
                </td>
            </tr>
            <tr>
                <td class="label">@Html.Label("Mật khẩu:")</td>
                <td>@Html.PasswordFor(m => m.Password)</td>
            </tr>
            <tr>
                <td colspan="2">
                    @Html.ValidationMessageFor(m => m.Password)
                </td>
            </tr>
            <tr>
                <td colspan="2">@Html.CheckBoxFor(m => m.RememberMe)
                    @Html.Label("Ghi nhớ", new { @class = "checkbox" })
                </td>
            </tr>
            <tr>
                <td>@Html.ActionLink("Đăng ký", "Register").</td>
                <td>
                    <input type="submit" value="Đăng nhập" /></td>
            </tr>
        </table>
       
    }
</section>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
